-- GENERATED SPELL FOR [High Priest Hawinni] --


function spell0_28756(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(50420,pUnit)
pUnit:RegisterEvent('Sorts_28756', 587, 1)
end

function spell1_28756(pUnit, Event) --@Serpent\'s Agility,Self--
pUnit:FullCastSpellOnTarget(54603,pUnit)
pUnit:RegisterEvent('Sorts_28756', 8251, 1)
end

function Sorts_28756(pUnit, Event)
local choix_sorts_28756 = math.random(0, 1)
if choix_sorts_28756 == 0 then
pUnit:RegisterEvent('spell0_28756', 1, 1)
end
if choix_sorts_28756 == 1 then
pUnit:RegisterEvent('spell1_28756', 1, 1)
end
end

function mob28756_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28756', math.random(1500, 3000), 1)
end

function mob28756_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28756_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28756_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28756, 1, 'mob28756_Action')
RegisterUnitEvent(28756, 2, 'mob28756_Leave')
RegisterUnitEvent(28756, 3, 'mob28756_Kill')
RegisterUnitEvent(28756, 4, 'mob28756_Die')
